Page({
  data:{
    avatarUrl: '/assets/floor/1.jpg',
  },
  onShareTimeline(){
    return {
      title: '帮我砍一刀~~~~',
      query: 'id=11',
      imageUrl: '/assets/floor/1.jpg'
    }
  },
  onShareAppMessage(){
    return{
      title: '这是个神奇的地方',
      path: '/pages/cate/cate',
      imageUrl: '/assets/floor/1.jpg'
    }
  },
  chooseAvatar(event){
    console.log(event)
    const url = event.detail.avatarUrl
    if(url){
      this.setData({
        avatarUrl: url
      })
    }
  },
  onSubmit(event){
    console.log(event)
    console.log(event.detail.value.nickname)
  }
  
})